﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

#pragma once
#include "GmFamilyService.h"
#include "IFamilyForm.h"


namespace gfam
{

    class IFamily2DSketchCurve;
    class IFamily2DSketchLine;

    /// \brief 剪切体
    class GM_FAMILY_SERVICE_EXPORT IFamilyPlaneSplitForm : public IFamilyForm
    {
        DEFINE_CAST_DERIVED(gfam::IFamilyPlaneSplitForm, gfam::IFamilyForm)

    public:
        /// \brief 创建剪切体
        /// 
        /// \param pDocument 文档
        /// \param pPlaneFace 平面节点引用
        /// \param isReverse  是否反向引用
        /// \param ChildFormId 子体id
        /// \return 剪切体
        static IFamilyPlaneSplitForm* Create(gcmp::IDocument* pDocument, const gcmp::IGraphicsNodeReference* pPlaneFace, bool isReverse, gcmp::ElementId ChildFormId);


        /// \brief 设置子节点可见性
        /// 
        /// \param bIsVisible 可见性标记
        virtual void SetChildrenVisible(bool bIsVisible) = 0;

        /// \brief 获取子体id
        /// 
        /// \return 子体id
        virtual gcmp::ElementId GetChildFormId() const = 0;

    };

}
